package com.hyq.market.ui.home.model;

import com.hyq.market.api.AbsServiceUtils;
import com.hyq.market.api.Constant;
import com.hyq.market.bean.GClass;

import org.xutils.http.RequestParams;

/**
 * Created by Administrator on 2017/7/20 0020.
 */

public class ModelClass  extends AbsServiceUtils {
    @Override
    public  GClass fromJson(String json) {
        return  gson.fromJson(json, GClass.class);
    }

    @Override
    public <T> void getData(T t) {
        super.getData(t);

        RequestParams params=new RequestParams(Constant.API_GoodsCategory_index);
//        params.addBodyParameter("account",baseRequest.getOpenId());
//        params.addBodyParameter("type",baseRequest.getAccountType());
//        params.addBodyParameter("code",baseRequest.getCode());
//        params.addBodyParameter("grant_type","authorization_code");
        sendToServer(params);
    }

}
